/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vue;

import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.border.LineBorder;

/**
 *
 * @author Jo
 */
public class Bordure extends LineBorder{
    
    Bordure(){
        super(new Color(150,150,200, 150));
    }

    @Override
    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
        //super.paintBorder(c, g, x, y, width, height);
        
        //x -= 10;
        
        Color oldColor = g.getColor();
        int i;

	/// PENDING(klobad) How/should do we support Roundtangles?
        g.setColor(lineColor);
        for(i = 0; i < thickness; i++)  {
	    if(!roundedCorners) {
                //g.drawRect(x+i, y+i, width-i-i-1, height-i-i-1);
                g.drawLine(x+i, y+i, x+i, y+i +height-i-i-1);
            }
	    else {
                g.drawRoundRect(x+i, y+i, width-i-i-1, height-i-i-1, thickness, thickness);
            }
        }
        g.setColor(oldColor);
    }
    
    
}
